package a_reflect;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

/**
 * @author Cheng-02
 * @version V1.0
 * @Package
 * @date 2024/4/14 下午3:54
 */
public class test03 {
    public static void main(String[] args) {
get1();
    }
       public static void get1(){
           Class<Person> personClass = Person.class;
           try {
               Person person = personClass.newInstance();
               System.out.println(person);
           } catch (InstantiationException e) {
               throw new RuntimeException(e);
           } catch (IllegalAccessException e) {
               throw new RuntimeException(e);
           }
       }
}